package com.aracky.common.entitybase;

import com.aracky.common.annotation.dataconvert.user.DataUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zengzhiping
 * @ClassName CommonVO
 * @Description 公共vo数据
 * @createTime 2022年05月12日
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public abstract class BaseCommonVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("创建人")
    @DataUser(userField = "createName")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
    @DataUser(userField = "updateName")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建名称")
    private String createName;

    @ApiModelProperty("更新人名称")
    private String updateName;


}
